<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 15:56
 */
namespace vendor\user;
class user
{
    private  static $userCount;
    public function __construct()
    {
        self::$userCount++;
        echo '<br />';
        echo '创建用户';
        echo '<br />';
    }
    public function createUser(){
        echo '注册';
        echo '<br />';
    }
    public function login(){
        echo '登录';
        echo '<br />';
    }
    public function updatepwd(){
        echo '修改密码';
        echo '<br />';
    }
    public function __destruct()
    {
        self::$userCount--;
        echo '删除用户';
        echo '<br />';
    }
    public function mylevel(){
        echo '<br />我是普通用户<br />';
    }
    public static function getOnlineNum(){
        return self::$userCount;
    }
}